"""
配置模块
"""

from config.settings import settings, get_config, get_account_config, get_host_config

__all__ = [
    'settings',
    'get_config',
    'get_account_config',
    'get_host_config'
]

# 版本信息
__version__ = '1.0.0'
__author__ = '自动化测试团队'


# 环境检查
def check_environment():
    """检查环境配置"""
    env = settings.current_env
    if env == 'prod':
        import warnings
        warnings.warn("当前为生产环境，请谨慎操作！", RuntimeWarning)

    return True


# 初始化检查
check_environment()
